#coding=UTF-8
require 'rexml/document'
include REXML


file = File.new("Competences.xml")
doc = Document.new(file)
root = doc.root
root.each_element do |e|
   STDOUT.reopen("./html/#{e.elements["@idC"]}.html")
   system("xsltproc Personnes.xsl Personnes.xml --stringparam idC #{e.elements["@idC"]}")
end
